Load an Image from HBitmap
If the image to load is a bitmap (device dependent), call ImageX.FromHbitmap or ImageX.FromBitmap methods to load the image into the ImageX object. A copy of the source image loads into the ImageX object.
The ImageX.ImageStatusEvent event is raised to provide feedback on the status of the loading process. Once loading is complete, the image is available in the ImageX object.
Load an Image from HDIB
If the image to load is a DIB, call ImageX.FromHdib method to load the image into the ImageX object.
-
To directly take control of the Hdib, set the ownDib parameter to true, for example: ImageX1.FromHdib(thehdib, true)
-
To make a copy of the DIB, prior to loading, set ownDib to false. (Default = false if not specified). For example: ImageX1.FromHdib(thehdib, false)